<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .out {
            width: 300px;
            height: 300px;
            background-color: cadetblue;
        }
        .center {
            width: 200px;
            height: 200px;
            background-color:burlywood;
        }
        .inner {
            width: 100px;
            height: 100px;
            background-color: blueviolet;
        }
    </style>
</head>
<body>
    <div class="out">
        <div class="center">
            <div class="inner">

            </div>
        </div>
    </div>
    <script>
        var outEle = document.querySelector(".out");
        var centerEle = document.querySelector(".center");
        var innerEle = document.querySelector(".inner");
        window.addEventListener("click",function(){
            console.log("window");
        });
        document.documentElement.addEventListener("click",function(){
            console.log("HTML");
        });
        document.body.addEventListener("click",function(){
            console.log("body");
        });
        outEle.addEventListener("click",function(){
            console.log("out");
        },true);
        centerEle.addEventListener("click",function(){
            console.log("center");
        });
        innerEle.addEventListener("click",function(){
            console.log("inner");
        });
    </script>
</body>
</html>